package com.ctshk.rpc.system.req.crm.member;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author 胡广
 * @since 2021/3/2
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "CrmMemberTestReq对象",description = "CrmMemberTestReq对象")
public class CrmMemberTestReq implements Serializable {
    private static final long serialVersionUID = 1L;

    @Range(min = 1,max = 2,message = "更新积分类型不正确(1:加积分,2:减积分)")
    @ApiModelProperty("更新积分类型(1:加积分,2:减积分)")
    private int updateTYpe;
    @Max(value = 2, message = "查询类型格式不正确(1:手机号查询,2:证件号码查询)")
    @Min(value = 1, message = "查询类型格式不正确(1:手机号查询,2:证件号码查询)")
    @ApiModelProperty("查询类型(1:手机号查询,2:证件号码查询)")
    private int queryType;
    @ApiModelProperty("手机号码/證件類別號碼")
    private String number;
    @ApiModelProperty("證件類別碼 (取自證件類別列表)")
    private String certificateType;
    @ApiModelProperty("积分")
    private BigDecimal numPoints;
    @ApiModelProperty("交易编号")
    private String txnNum;
}
